<template>
  <div class="home">
	  <el-row>
	    <el-col :span="16">
	      <h2>TD-Workbench 客户端简介</h2>
	      <p>
			TD-Workbench是一个基于electron构建的，针对时序数据库TDengine的图形化管理工具。具有跨平台、易于使用、版本适应性强等特点。
	      </p>
		  <p>
	        <b>当前版本:</b> <span>v{{ version }}</span>
	      </p>
	      <p>
	  		<el-tag type="danger">&yen;免费开源</el-tag>
	        <el-button type="primary" size="mini" icon="el-icon-cloudy" plain @click="goTarget('https://gitee.com/bhdweb/tdengine-workbench')">访问码云</el-button>
	      </p>
		  <h4>说点什么</h4>
		  <p>由于TDengine官方未在开源版本提供客户端GUI工具，社区目前能找到的两款工具都不是很完善。本工具是在<a href="javascript:;" @click="goTarget('https://gitee.com/skyebaobao/TDengineGUI')"> TDengineGUI</a>基础上改造而来，部分源码来自此处。</p></p>
		  
		  <h4>还想说一句</h4>
		  <p>本人【<a href="javascript:;" @click="goTarget('https://gitee.com/bhdweb')"> 村口的大爷</a>】，后端程序猿一枚，<b style="color: red;">就爱写点代码，一杯茶一首歌，一个参数秀一天</b></p>
	    </el-col>
	    <el-col :span="8">
			<el-card shadow="hover">
			  <div slot="header">
			    <span>联系信息</span>
			  </div>
			  <div style="min-height: 180px;">
			    <p>
			      <i class="el-icon-user-solid"></i> QQ群：35325496
			    </p>
			    <p>
			      <i class="el-icon-chat-dot-round"></i> 微信：<a href="javascript:;"> bhdweb</a>
			    </p>
				<p>
				  <i class="el-icon-cloudy"></i> 码云(gitee)：<a href="javascript:;" @click="goTarget('https://gitee.com/bhdweb')"> 村口的大爷</a>
				</p>
				<p>加群或者微信时，请备注 TD-Workbench</p>
			  </div>
			</el-card>
	    </el-col>
	  </el-row>
	  <el-divider />
    <el-card class="update-log">
      <div slot="header" class="clearfix">
        <span>更新日志</span>
      </div>
      <el-collapse accordion>
        <el-collapse-item title="v1.0.0 - 2021-07-15">
          <ol>
            <li>TD-Workbench 客户端 正式发布</li>
          </ol>
        </el-collapse-item>
      </el-collapse>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "welcome",
 
  data() {
    return {
      // 版本号
      version: "1.0.0"
    }
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    }
  },
};
</script>

<style scoped lang="scss">
.home {

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #676a6c;
  overflow-x: hidden;

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>

